package com.Manager;

public class SceneManager {
	private static SceneManager sManager;
	public int currentScene;
	
	public static SceneManager getInstance()
	{
		if(sManager == null)
			sManager = new SceneManager();
		
		return sManager;
	}
	
	private SceneManager()
	{	
		this.currentScene = 0; //Init
	}
	
	public boolean changeScene(boolean t)
	{
		if(t && this.currentScene == 0)
			this.currentScene = 1;//Menu		
		return t;
	}
	
	public boolean getBack(boolean t)
	{
		if(t)
		{
			switch (this.currentScene) 
			{
				case 1:
				case 3:
				case 4:
				case 5:
					this.currentScene = 1;
					break;
			}
		}			
		return t;
	}
}
